{% extends 'layout/manage.html' %}

{% block css %}
	<style>
        .panel-default {
            margin-top: 10px;
        }
		.panel-default .panel-heading {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
		}

        .panel-body {
            padding: 0;
        }

        .title-list {
            border-right: 1px solid #dddddd;
            min-height: 500px;
        }

        .content {
            border-left: 1px solid #dddddd;
            min-height: 600px;
            margin-left: -1px;
        }
	</style>
{% endblock %}

{% block content %}
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<div>
					<i class="fa fa-book" aria-hidden="true"></i> wiki文档
				</div>
				<div class="function">
					<a href="{% url 'wiki_add' project_id=request.tracer.user.id %}" class="btn btn-success btn-xs">
						<i class="fa fa-plus-circle" aria-hidden="true"> 新建</i>
					</a>
				</div>
			</div>
			<div class="panel-body">
				<div class="col-sm-3 title-list">
					目录
				</div>
				<div class="col-sm-9 content">
					<form action="" method="post">
						{% csrf_token %}
						{% for field in form %}
							<div class="form-group">
								<label for="{{ field.id_for_label }}">{{ field.label }}</label>
								{{ field }}
								<span class="error-msg">{{ field.errors.0 }}</span>
							</div>
						{% endfor %}
						<button type="submit" class="btn btn-primary">提交</button>
					</form>
				</div>
			</div>
		</div>


	</div>

{% endblock %}